<?php 
/**
 * TomatoCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@tomatocms.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @version 	$Id: show.phtml 5174 2010-08-30 10:57:01Z huuphuoc $
 * @since		2.0.0
 */
?>
<div id="featured-news" class="green-box">
    <div class="box-title">
        <div class="wrapper"><?php echo $this->translate()->widget('title')?></div>
        <div class="conner"></div>
    </div>
    <div class="box-container">
	<?php if ($this->articles && count($this->articles) > 0) : ?>
       
        <?php
        $i = 0;
        foreach($this->articles as $article){

        ?>
           <div class="news">
                <img src="<?php echo $article->image_small ?>" width="48px" height="48px" alt="<?php $article->title?>"/>
                    <h4 class="news-title"><a href="<?php echo $this->url($article->getProperties(), 'news_article_details') ?>"><?php echo $article->title?></a>
                        <a class="news-view" href="<?php echo $this->url($article->getProperties(), 'news_article_details') ?>"><?php echo $this->translate()->widget('details')?></a>
                    </h4>
                    <div class="clearfix"></div>
            </div>
        <?php
        $i++;
        }
        
        ?>
	<?php endif; ?>
    </div>
    <div id="news-pagination" class="box-bottom">

    </div>
</div>    
